package event
{
  import flash.events.Event;

  public class DeleteItemEvent extends Event
  {
    public static const DELETE_ITEM:String = "deleteItem";

    public var itemIndex:int;
    public var data:Object;

    public function DeleteItemEvent(itemIndex:int = 0, data:Object=null, bubbles:Boolean=false, cancelable:Boolean=false)
    {
      super(DELETE_ITEM, bubbles, cancelable);
      this.itemIndex = itemIndex;
      this.data = data;
    }

    override public function clone():Event
    {
      return new DeleteItemEvent(itemIndex, data, bubbles, cancelable);
    }
  }
}